Replaced TinyMCE7 with TinyMCE6#2
Replaced TinyMCE7 with TinyMCE6#2rhoerr merged 5 commits intorhoerr:feat/add-2.4.7-p3from fballiano:feat/add-2.4.7-p3
Conversation
|
Awesome, thank you. I would like to also incorporate these fixes to upstream bugs introduced by the tiny7 upgrade: And possibly incorporate changes from magefan/module-wysiwyg-advanced@master...ivanhrytsaim:module-wysiwyg-advanced:12062-TinyMCE-support-upgrade to enable the font size option (also an upstream regression with tiny7). |
done
but where should I put that file? I can't find anything related to that code in our repo |
I'll investigate that later -- either it's hiding somewhere in the core WYSIWYG code, or core doesn't initialize these settings at all currently. |
|
I found where core handles that config: \Magento\Cms\Model\Wysiwyg\DefaultConfigProvider::getConfig Possibly related test config: https://github.com/mage-os/mageos-magento2/blob/2.4-develop/app/code/Magento/Cms/Test/Mftf/Section/TinyMCESection/TinyMCESection.xml (although we don't use the MFTF test suite ourselves) |
|
it could be this file: https://github.com/mage-os/mageos-magento2/blob/2.4-develop/app/code/Magento/Ui/view/base/web/js/form/element/wysiwyg.js and https://github.com/fballiano/mageos-ryan/blob/18dd197b5b9866faab510d61432e3ffd1b53bd4a/lib/web/mage/adminhtml/wysiwyg/tiny_mce/tinymceAdapter.js#L4 but I don't have the skills and the tools at the moment to dig more. I'm not sure we should block this to add this fix/feature |
|
It should probably be a separate PR either way. We can process this as-is. Thanks Fabrizio! |
|
The Tiny 6 files look good to me. I fixed a typo in the config XML. Unfortunately it's not actually working for me as of yet. I get this in console on loading the editor for a CMS page: So something isn't wired up. I haven't investigated far enough yet to determine what. This might be specific to Page Builder. It seems to load on product edit. |
|
Disregard that last! My mistake, had out of date requirejs-config without the updated tinymce reference. Found that on code review, retested, works on Page Builder too now. Going to approve and merge. |
rhoerr
left a comment
There was a problem hiding this comment.
Thank you, looks good and checks out on QA.
|
@rhoerr so sorry about the tag mismatch!! weird! phpstorm changes the closing tags automatically 🧐 |
I couldn't test an installation with this but I know for sure tiny6 is compatible with tiny7 (did the same tests for my own projects)